package io.arukas.domain;

import io.arukas.domain.audit.DateAudit;
import io.arukas.domain.audit.UserAudit;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by IntelliJ IDEA. <br/>
 * Author: YuXian Niu <br/>
 * Email: niuyuxian@163.com <br/>
 * Create: 2021-08-15 22:23 <br/>
 */
@Data
@Entity
@Table(name = "sys_user")
@EqualsAndHashCode(callSuper = true)
public class SysUser extends UserAudit {

    // 用户名
    @Column(unique = true)
    private String username;

    private String password;

    // 状态
    private Integer state;

}